Syntax

DC SET PLANET IMAGE planet, image index, angular radius, do lighting

Parameters

int: planet

Which planet - this can be any integer, if you re-use one the planet will be replaced.

int: image index

Which texture to use.

float: angular radius

Size in steradians.

int: do_lighting

If 1, light the planet from the sun direction, if 0, show the texture as-is.

Returns

This command does not return a value.

Example Code

rem Add the moon
load image "Moon.png",11
dc set planet image 1,11,.2
dc set planet direction x 1,0.0
dc set planet direction y 1,0.2
dc set planet direction z 1,1.0

See also

DC SET PLANET DIRECTION
DarkCLOUDS Commands Menu
Index